<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui">

<ui:composition template="_setor.xhtml">
	<ui:define name="corpo">

		<div id="conteudo">

			<h:form id="form">
				
				
				<p:dataTable id="listSetor" value="#{setorBean.setores}"
					var="setor" paginator="true" rows="20" style="font-size: 11px" emptyMessage="Não Encontrado" >

					<f:facet name="header">
						<h:outputText value="SETORES CADASTRADOS" />
					</f:facet>

					<p:column sortBy="#{setor.nome}" filterBy="#{setor.nome}" filterMatchMode="contains"
						headerText="Setor">
						<h:outputText value="#{setor.nome}" />
					</p:column>
					
					<p:column sortBy="#{setor.bloco.sigla}" filterBy="#{setor.bloco.sigla}" filterMatchMode="contains"
						headerText="Sigla">
						<h:outputText value="#{setor.bloco.sigla}" />
					</p:column>

					<p:column sortBy="#{setor.bloco.nome}" filterBy="#{setor.bloco.nome}" filterMatchMode="contains"
						headerText="Bloco">
						<h:outputText value="#{setor.bloco.nome}" />
					</p:column>
						
				</p:dataTable>


			</h:form>
		</div>


	</ui:define>
</ui:composition>
</html>